<?php

namespace app\api\controller;

use app\BaseController;
use app\common\business\Goods as GoodsBis;
use app\common\lib\Show;

class Index extends BaseController {

    public function getRotationChart() {
        $result = (new GoodsBis())->getRotationChart();
        dump(Show::success($result));exit;
        return Show::success($result);
    }

    public function cagegoryGoodsRecommend() {
        $categoryIds = [
            1,
            2,
        ];
        $result = (new GoodsBis())->cagegoryGoodsRecommend($categoryIds);
        return Show::success($result);
    }

}